# import redis
# Pool = redis.ConnectionPool(host='47.104.82.16', port=6379, max_connections=10,password='FanTan879425')
# conn = redis.Redis(connection_pool=Pool,decode_responses=True)
# urls2 = [item.decode('utf-8').replace(' ','') for item in conn.smembers('mv_m3u8')]
#
# for url in conn.smembers('mv_m3u8'):
#     if '8d9c' in url.decode('utf-8').replace(' ',''):
#         print(url)
# for url in conn.smembers('mv_m3u8_bad'):
#     if '8d9c' in url.decode('utf-8').replace(' ', ''):
#         print(url)

# from turtle import Turtle,Screen
#
#
# def draw_dream():
#     window = Screen()
#     window.bgcolor("white")
#     draw_Scarlett()
#     window.exitonclick()
#
#
# def draw_Scarlett():
#     brad = Turtle()
#     brad.shape("circle")
#     brad.color("red")
#     draw_head(brad)
#     draw_body(brad)
#     draw_arm(brad)
#     draw_leg1(brad)
#     draw_leg2(brad)
#
#
# def draw_head(brad):
#     brad.circle(60)
#     brad.speed(3)
#     brad.right(60)
#
#
# def draw_body(brad):
#     num = 0
#     while num < 3:
#         brad.forward(150)
#         brad.right(120)
#         brad.speed(1)
#         num += 1
#
#
# def draw_arm(brad):
#     brad.forward(60)
#     brad.left(60)
#     brad.forward(60)
#
#     brad.backward(60)
#     brad.right(60)
#     brad.backward(60)
#
#     brad.right(60)
#
#     brad.forward(60)
#     brad.right(60)
#     brad.forward(60)
#
#     brad.backward(60)
#     brad.left(60)
#     brad.forward(90)
#
#
# def draw_leg1(brad):
#     brad.left(120)
#     brad.forward(40)
#     brad.right(120)
#     brad.forward(120)
#     draw_foot1(brad)
#
#
# def draw_leg2(brad):
#     brad.color("red")
#     brad.right(180)
#     brad.forward(120)
#     brad.right(60)
#     brad.forward(70)
#     brad.right(60)
#     brad.forward(120)
#     draw_foot2(brad)
#
#
# def draw_foot1(brad):
#     brad.color("blue")
#     num = 0
#     while num < 4:
#         brad.forward(20)
#         brad.right(90)
#         num += 1
#
#
# def draw_foot2(brad):
#     brad.color("blue")
#     num = 0
#     while num < 4:
#         brad.forward(20)
#         brad.left(90)
#         num += 1
#
# draw_dream()
#
# print(Screen().getshapes())
import numpy as np
print(np.nan==np.nan)
print([1,2,3,np.nan]==[1,2,3,np.nan])